/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Waf.Model
{

    /// <summary>
    ///  riskRuleCfg
    /// </summary>
    public class RiskRuleCfg
    {

        ///<summary>
        /// 规则id
        ///</summary>
        public int? Id{ get; set; }
        ///<summary>
        /// WAF实例id
        ///</summary>
        public string WafInstanceId{ get; set; }
        ///<summary>
        /// 域名
        ///</summary>
        public string Domain{ get; set; }
        ///<summary>
        /// 规则名称
        ///</summary>
        public string Name{ get; set; }
        ///<summary>
        /// uri 以/开头
        ///</summary>
        public string Uri{ get; set; }
        ///<summary>
        /// 动作 支持notice / verify@captcha
        ///</summary>
        public string Action{ get; set; }
        ///<summary>
        /// 请求方法 支持 POST:1,GET:1,PUT:1
        ///</summary>
        public string Methods{ get; set; }
        ///<summary>
        /// 场景 支持 account_login / account_register
        ///</summary>
        public string SceneRef{ get; set; }
        ///<summary>
        /// 事件 支持 passwd:JSON_BODY.passwd,username:ARGS.username,session:ARGS_BODY.session
        ///</summary>
        public string Event{ get; set; }
        ///<summary>
        /// 0-使用中 1-禁用
        ///</summary>
        public int? Disable{ get; set; }
        ///<summary>
        /// 更新时间，s
        ///</summary>
        public int? UpdateTime{ get; set; }
        ///<summary>
        /// 跳转地址，Action为redirect时必须为当前实例下的域名的url，forbidden时为自定义页面名称
        ///</summary>
        public string Redirection{ get; set; }
    }
}
